package com.ruoyi.base.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.base.mapper.BFastmathMapper;
import com.ruoyi.base.domain.BFastmath;
import com.ruoyi.base.service.IBFastmathService;

/**
 * 速算Service业务层处理
 *
 * @author ruoyi
 * @date 2024-04-07
 */
@Service
public class BFastmathServiceImpl implements IBFastmathService
{
    @Autowired
    private BFastmathMapper bFastmathMapper;

    /**
     * 查询速算
     *
     * @param fastmathId 速算主键
     * @return 速算
     */
    @Override
    public BFastmath selectBFastmathByFastmathId(Long fastmathId)
    {
        return bFastmathMapper.selectBFastmathByFastmathId(fastmathId);
    }

    /**
     * 查询速算列表
     *
     * @param bFastmath 速算
     * @return 速算
     */
    @Override
    public List<BFastmath> selectBFastmathList(BFastmath bFastmath)
    {
        return bFastmathMapper.selectBFastmathList(bFastmath);
    }

    /**
     * 新增速算
     *
     * @param bFastmath 速算
     * @return 结果
     */
    @Override
    public int insertBFastmath(BFastmath bFastmath)
    {
        return bFastmathMapper.insertBFastmath(bFastmath);
    }

    /**
     * 修改速算
     *
     * @param bFastmath 速算
     * @return 结果
     */
    @Override
    public int updateBFastmath(BFastmath bFastmath)
    {
        return bFastmathMapper.updateBFastmath(bFastmath);
    }

    /**
     * 批量删除速算
     *
     * @param fastmathIds 需要删除的速算主键
     * @return 结果
     */
    @Override
    public int deleteBFastmathByFastmathIds(Long[] fastmathIds)
    {
        return bFastmathMapper.deleteBFastmathByFastmathIds(fastmathIds);
    }

    /**
     * 删除速算信息
     *
     * @param fastmathId 速算主键
     * @return 结果
     */
    @Override
    public int deleteBFastmathByFastmathId(Long fastmathId)
    {
        return bFastmathMapper.deleteBFastmathByFastmathId(fastmathId);
    }
}
